package file;

import java.io.File;

public class DelectFileAirDemo {
    public static void main(String[] args) {
        File file=new File("./demo.txt");
        if (file.exists()){
            file.delete();
            System.out.println("目录已删除");
        }
        else{
            System.out.println("该文件不存在");
        }
    }
}
